<template>
  <div style="overflow-x: hidden; overflow-y: auto" v-if="warningList">
    <el-table :data="warningList" style="width: 100%" height="100px" v-adaptive>
      <el-table-column prop="type" label="类型"> </el-table-column>
      <el-table-column prop="message" label="消息"> </el-table-column>
      <el-table-column prop="eventDate" label="开始日期">
        <template slot-scope="scope">
          {{ formatDateT(scope.row.eventDate) }}
        </template>
      </el-table-column>
      <el-table-column prop="receivedDate" label="接收日期">
        <template slot-scope="scope">
          {{ formatDateT(scope.row.receivedDate) }}
        </template>
      </el-table-column>
    </el-table>
  </div>
</template>

<script>
export default {
  props: {
    warningList: {
      type: Array,
      default: [],
    },
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {
    formatDateT(date) {
      return formatTime(date);
    },
  },
};
import { formatTime } from "@/views/common/js/utils.js";
</script>

<style>
</style>
